<?php
/**
 * Created by PhpStorm.
 * User: zhou
 * Date: 2017/4/10
 * Time: 17:31
 */

namespace Application\Service;


use Application\Dao\SiteDao;
use Infobird\Service\BaseService;

class SiteService extends BaseService
{
    protected $siteDao;

    function __construct()
    {
        $this->siteDao = new SiteDao();
    }

    public function addSite($data){
        return $this->siteDao->insert($data);
    }

    public function fetchAll($page,$pageSize){
        return $this->siteDao->pageAll($page,$pageSize);
    }

    public function contSite(){
        return $this->siteDao->contSite();
    }

    public function delete($id){
        return $this->siteDao->delete($id);
    }
}